<?php
/**
 * Lista os Fornecedores cadastrados no banco de dados vinculados ao Material informado.
*/

if( !function_exists('__autoload') )
{
    function __autoload($class_name) {
    require_once $class_name . '.php';
    }
}

SAEO::ValidarAcesso( array( 0, 4 ) );

?>
<html>
           <head>
           <title>SAEO - Listar Fornecedor</title>
           <script type='text/javascript' src='templates/hintbox.js'></script>
           <link rel='stylesheet' type='text/css' href='templates/estilos.css'>
           <script type='text/javascript' src='templates/js.js'></script>
           <script type='text/javascript' src='templates/ajax.js'></script>
           <script type='text/javascript' src='templates/setor.js'></script>
           <script type='text/javascript' src='templates/validacoes.js'></script>
           <script type='text/javascript' src='templates/fornecedor.js'></script>
           </head>
     <body class='body'>
     <form name='listarFornecedor' method='post' id='listarFornecedor'>
     <table width='779' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
              <tr>
                <td colspan='2'>
                <?php include "Topo.php"; ?>
                </td>
            </tr>
            <tr>
                <td><div class='titulosTabelas' style='width:779; height:20; background:url(templates/tabela.jpg)'>LISTAR FORNECEDOR</div></td>
            </tr>
            <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
            <tr>
                <td><table class='tabela' width='700' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'>
                           <tr>
                               <td colspan='2'>&nbsp;</td>
                           </tr>
                           <tr>
                               <td class='textoTabelas'  width='35%'>&nbsp;Tipo:</td>
                               <td>
	                               <select name='tipoInformacao' id='tipoInformacao' class='inputTexto' onchange='MostrarDiv( this.value, document.getElementById("informacao")); MostrarTitulosListar( this.value ); CarregarCategorias(this.value); document.getElementById("mostrarDadosFornecedor").style.display="none";'>
		                               <option value='0'>Selecione o Tipo do Cadastro</option>
		                               <option value='1'>Material</option>
		                               <option value='2'>Servi&ccedil;o</option>
	                               </select>  <a href='#' class='hintanchor' onMouseover='showhint("A qual tipo pertence o fornecedor a ser cadastrado. Op��es: Material ou Servi�o.", this, event, "270px");'>[?]</a>
                               </td>
                           </tr>
                           <tr>
                               <td colspan='2'>&nbsp;
                                   <div id='informacao' style='display: none'>
                                        <table width='700' class='tabela' style='border-style: none' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFE3'>
                                        <tr>
                                            <td class='textoTabelas' id='especificacao' width='35%'></td>
                                            <td>
                                                <select name='listaInformacao' id='listaInformacao' class='inputTexto' onchange='MostrarDiv( this.value, document.getElementById("mostrarDadosFornecedor")); CarregarFornecedorPorEspecializacao();'></select>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan='2'>&nbsp;</td>
                                        </tr>
                                        </table>
                                   </div>
                               </td>
                           </tr>
                               <td colspan='2'>
                               <div id='mostrarDadosFornecedor' style='display: none'>
                                    <table id='dadosFornecedor' width='700' border='0' cellpadding='0' align='center' bgcolor='#FFFFFF' class='detalhamento'>
                                    <thead class='detalhamento'>
                                    <tr>
                                        <th>Nome</th>
                                        <th>Telefone</th>
                                        <th>Telefone Comercial</th>
                                        <th>Fax</th>
                                        <th>Celular</th>
                                        <th>Cidade/Estado</th>
                                        <th>E-mail</th>
                                        <th>Site</th>
                                    </tr>
                                    </thead>
                                    <tbody class='detalhamento' id='corpoFornecedor'>
                                    </tbody>
                                    </table>
                               </div>
                               </td>
                           </tr>
                           <tr>
                                <td colspan='2'>&nbsp;</td>
                           </tr>
                     </table>
                </td>
            </tr>
            <tr>
                <td>&nbsp;</td>
            </tr>
            <tfoot>
           <tr>
                <td colspan='2'>&nbsp;</td>
            </tr>
                   <tr>
                       <?php include 'rodapeCreditos.php'; ?>
            </tr>
            </tfoot>
     </table>
     </form>
     </body>
     </html>